<?php if($areas){ 
	echo '<ul>';
    foreach ($areas as $v) {
?>
	<li onclick="getGameServer(this)" data-id="<?php echo $v['id'] ?>"><?php echo $v['area_name'] ?></li>
<?php
        } 
    echo '</ul>';    
    }
?>